package com.example.demo.model.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统用户角色
 *
 * @TableName sys_user_role
 */
@Data
@Table("sys_user_role")
public class SysUserRole implements Serializable {
    /**
     * 用户id
     */
    @Id(keyType = KeyType.Generator, value = KeyGenerators.uuid)
    private String id;

    /**
     *
     */
    @Column(value = "user_id")
    private String userId;

    /**
     * 角色id
     */
    @Column(value = "role_id")
    private String roleId;

    /**
     * 创建时间
     */
    private Date createTime;

    private static final long serialVersionUID = 1L;
}